#e
#Title[`u̎ԗցv]
#Text[ςƂ͂āAςƎB]
#Image[]
#player[FREE]
#ScriptVersion[2]

script_enemy_main
{
	let name = "`u̎ԗցv";
	let imgBoss = "script\img\ExRumia.png";
	let count;
	let cx;

	@Initialize
	{
        	CutIn(YOUMU, name, "", 0, 0, 0, 0);

		count=0;
		cx=GetCenterX();

		SetLife(5000);
		SetScore(30000000);
		SetInvincibility(30);
		SetDamageRate(95,0);

		Expert;

		LoadGraphic(imgBoss);
		SetTexture(imgBoss);
		SetGraphicRect(1,1,64,64);
		SetMovePosition02(cx,120,30);
	}
		
	@MainLoop
	{
		if(count==90){
			let angle=0;
			while(angle<360)
			{
				let shot=0;
				CreateShotA(shot,310,360,30);
				SetShotDirectionType(ABSOLUTE);
				SetShotDataA(shot,0,4,angle,0,-0.15,2,BLUE11);
				SetShotDirectionType(PLAYER);
				SetShotDataA(shot,60,3,0,0,0,5,YELLOW11);
				FireShot(shot);
				angle+=15;
			}
		}

		if(count==135){
			let angle=0;
			while(angle<360)
			{
				let shot=0;
				CreateShotA(shot,140,120,60);
				SetShotDirectionType(ABSOLUTE);
				SetShotDataA(shot,0,4,angle,0,-0.15,2,BLUE11);
				SetShotDirectionType(PLAYER);
				SetShotDataA(shot,60,3,0,0,0,3,YELLOW11);
				FireShot(shot);//
				angle+=15;
			}
			count=0;
		}
		
		SetCollisionA(GetX(),GetY(),32);
		SetCollisionB(GetX(),GetY(),24);
		count++;
	}
	
	@DrawLoop
	{
		DrawGraphic(GetX(),GetY());
	}

	@Finalize
	{
		DeleteGraphic(imgBoss);
	}
}